import 'package:flutter/material.dart';
import 'package:mathfun/utils/app_colors.dart';

class SectionTitle extends StatelessWidget {
  final String title;

  const SectionTitle({super.key, required this.title});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.only(bottom: 8),
      child: Text(
        title,
        style: const TextStyle(
          fontSize: 20,
          fontWeight: FontWeight.bold,
          color: Colors.grey, //AppColors.textPrimary, // 假设 AppColors.textPrimary 已确保为常量且为 Color 类型，移除不必要的类型检查
        ),
      ),
    );
  }
}